//
// Copyright © 2021 dev. All rights reserved.
// 

import Cocoa
import RxSwift
import RxCocoa


class WWDCTabViewController<Tab:RawRepresentable>: NSTableViewController where  Tab.RawValue == Int  {
    var activeTab: Tab {
        get {
            return Tab(rawValue: selectedTabViewItemIndex)
        }
        set {
            selectedTabViewItemIndex = newValue.rawValue
        }
    }

    private var activeTabVar = BehaviorRelay<Tab>(value:Tab(rawValue:0))

    var rxActiveTab:Observable<Tab> {
        return activeTabVar.asObservable()
    }
//    override var sle


}
